package com.mephi.oshs.model.interpreter.impl;

import com.mephi.oshs.model.interpreter.api.IContext;

import java.util.HashMap;
import java.util.Map;

public class TestContext implements IContext {
    private final Map<Object, Object> map = new HashMap<Object, Object>();

    @Override
    public Object get(final Object name) {
        return map.get(name);
    }

    @Override
    public void addVariable(final Object name, final Object value) {
        map.put(name, value);
    }
}
